﻿using SqlSugar;
using Zhp.Entity.SysEnum;

namespace Zhp.Model.Formula
{
    public class FormulaVariableModel
    {
        public long Id { get; set; }

        public FormulaVariableTypeEnum VariableType { get; set; }

        public string VariableKey { get; set; }

        public string VariableName { get; set; }

        public string EntityField { get; set; }

        public string EntityType { get; set; }

        public long VariablePrimaryKey { get; set; }
        public decimal Order { get; set; }
    }

    public class FormulaVariableSearch : PageModel
    {

    }

    public class FormulaVariableEdit
    {
        public long Id { get; set; }
        public FormulaVariableTypeEnum VariableType { get; set; }

        public string VariableKey { get; set; }

        public string VariableName { get; set; }

        public string EntityField { get; set; }

        public string EntityType { get; set; }

        public long VariablePrimaryKey { get; set; }

        public decimal Order { get; set; }
    }

    public class FormulaVariableSelect
    {
        public string Text { get; set; }
        public string Value { get; set; }
    }

    public class FormulaVariableList
    {
        public long Id { get; set; }

        public FormulaVariableTypeEnum VariableType { get; set; }

        public string VariableKey { get; set; }

        public string VariableName { get; set; }

        public string EntityField { get; set; }

        public string EntityType { get; set; }

        public long VariablePrimaryKey { get; set; }
    }
}
